<template>
    <div class="detail">
        detail!!! {{$route.params.id}} {{$route.query.title}}
    </div>
</template>

<script>
export default {
    beforeRouteUpdate(to,from,next){
        console.log("detail-beforeRouteUpdate")
    },
    created(){  //this.$route ?    new Vue({router})
        // console.log(this.$route.params.orderId)
        //发送ajax请求
        /* this.$http.get(url,{
            params:{
                movieId:this.$route.params.orderId
            }
        }).then(res=>{

        }) */
    }

}
</script>

